/**
 * @author wn
 * @date 2023/03/14 16:30:38
 * @description: Table 获取 数据 的 hook
 */

/**
 * 过滤查询对象中的 createTime
 * @param obj
 * @returns {*}
 */
export function filterObjWithCreateTime(obj) {
	if (!(typeof obj === 'object')) {
		return
	}

	for (let key in obj) {
		if (
			Object.prototype.hasOwnProperty.call(obj, key) &&
			key === 'createTime'
		) {
			delete obj[key]
		}
	}
	return obj
}

/**
 * /queryOrdDataPerPage?json_data=%7B"companyID":66,"userID":266,"dataType":"PROCESS_FLOW"%7D
 * {column: "created_date", order: "desc", field: "ord_id", pageNo: 1, pageSize: 10}
 * 获取 工艺流程  表单数据
 */
export const loadOrderData = () => {}
